<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<h3 class="aui-gutter-column-md">
    {{'common_basic_info_label' | i18n}}
</h3>
<lv-form [lvLabelColon]='false' class="aui-gutter-column-xl">
    <lv-form-column *ngFor='let column of formItems' lvWidth="50%">
        <lv-form-item *ngFor='let item of column'>
            <lv-form-label>
                {{item.label}}
            </lv-form-label>
            <lv-form-control>
                <ng-container [ngSwitch]="item.key">
                    <ng-container *ngSwitchCase="'status'">
                        <aui-status [value]="item.content" type="detectionSnapshotStatus">
                        </aui-status>
                    </ng-container>
                    <ng-container *ngSwitchCase="'copySize'">
                        {{item.content | capacityCalculateLabel:'1.1-3':unitconst.BYTE:true:true}}
                    </ng-container>
                    <ng-container *ngSwitchDefault>
                        <span lv-overflow class="warp-content">{{item.content | nil}}</span>
                    </ng-container>
                </ng-container>
            </lv-form-control>
        </lv-form-item>
    </lv-form-column>
</lv-form>
<h3 class="aui-gutter-column-md">
    {{'explore_suspicious_file_list_label' | i18n}}
    <i lv-icon="aui-icon-help" lv-tooltip="{{'explore_max_infected_file_label' | i18n:[1000]}}" lvTooltipPosition="rightTop"
        lvTooltipTheme="light" lvColorState='true'></i>
</h3>
<lv-pro-table #dataTable [config]="tableConfig" [data]="tableData"></lv-pro-table>

<ng-template #fileAttrTpl let-item>
    <span lv-overflow>
        {{'protection_last_modifyed_label' | i18n}}: {{item.latestModifyTime}}
    </span>
</ng-template>

<ng-template #sizeTpl let-item>
    <span lv-overflow>
        {{item.fileSize | capacityCalculateLabel:'1.1-3':unitconst.BYTE:true:true}}
    </span>
</ng-template>